<?php include "coresection/connection.php";?>
<?php include "coresection/checkSession.php";?>
<?php include "coresection/search-order.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邮政点餐系统</title>
    <link href="css/style.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script> 
    <script type="text/javascript" src="js/placeholder.js"></script> 
    <script type="text/javascript" src="js/metro.js"></script>
	
<style>
/*专门为平板设置的样式*/
body{font-size:32px;}
.header{width:100%;padding:0px;margin:0px; border-bottom:solid 2px #060;border-top:solid 2px #060; overflow:hidden; height:80px!important;min-height:80px!important}

.keyword{width:80%;height:80px!important;padding:0px 0px 0px 15px;margin:0px -15px 0px 0px; border:none!important; font-size:70px!important;float:left}
.header .submitbutton{width:20%;height:80px!important;background-color:#060;padding:0px;margin:0px; 
font-size:70px!important;color:#FFF; border:none!important; float:left; }

.header form{ margin:0px; padding:0px;}

table.admin_list_table{ margin:0px!important; font-size:58px;}
table.checkTable thead tr td { padding:10px;}
	
.main{width:100%;}
 
#metro{position:fixed;left:0px;top:0px;background-color:#222222;width:100%; height:0px;padding:0px;z-index:100000; float:left;overflow:hidden;color:#ffffff; background-color:#ececec }


</style>

</head>

<body>

<?php include 'modules/metro.php'; ?>

<div class="header">


<form action="admin_order.php" method="post" autocomplete="off" enctype="multipart/form-data">
 
 <?
 if(!$admin_keywordes)
 {$word="请输入会员号";}
else
{$word=$admin_keywordes;}
?>
 
<input id="keywordes" name="keywordes" placeholder="<?echo $word?>" class="keyword" onfocus="" />
<input type="submit" value="查询" class="submitbutton" />  
 
 <script type="text/javascript">
document.getElementById("keywordes").focus();
</script>

        <div style="display:none">
        就餐时间：<select name="year">
            <option value="<?echo date("Y",time())?>"><?echo date("Y",time())?></option>
            <option value="<?echo date("Y",time())-1?>"><?echo date("Y",time())-1?></option>
        </select>
        年
        <select name="month">
            <option value="01" class="month_1">01</option>
            <option value="02" class="month_2">02</option>
            <option value="03" class="month_3">03</option>
            <option value="04" class="month_4">04</option>
            <option value="05" class="month_5">05</option>
            <option value="06" class="month_6">06</option>
            <option value="07" class="month_7">07</option>
            <option value="08" class="month_8">08</option>
            <option value="09" class="month_9">09</option>
            <option value="10" class="month_10">10</option>
            <option value="11" class="month_11">11</option>
            <option value="12" class="month_12">12</option>
        </select>
        月
        <select name="days">
            <option value="0">全部</option>
            <option value="01">01</option><option value="02">02</option><option value="03">03</option>
            <option value="04">04</option><option value="05">05</option><option value="06">06</option>
            <option value="07">07</option><option value="08">08</option><option value="09">09</option>
            <option value="10">10</option><option value="11">11</option><option value="12">12</option>
            <option value="13">13</option><option value="14">14</option><option value="15">15</option>
            <option value="16">16</option><option value="17">17</option><option value="18">18</option>
            <option value="19">19</option><option value="20">20</option><option value="21">21</option>
            <option value="22">22</option><option value="23">23</option><option value="24">24</option>
            <option value="25">25</option><option value="26">26</option><option value="27">27</option>
            <option value="28">28</option><option value="29">29</option><option value="30">30</option>
            <option value="31">31</option>
        </select>
        日
        <select name="ats">
            <option value="0">全部</option>
            <option value="1">早</option>
            <option value="2">午</option>
            <option value="3">晚</option>
        </select>
        餐
 
    </form>
    
    </div>
    
    
</div>

 

<div class="main">
 
 <div style="text-align:left; color:red; font-weight:blod; margin:15px; overflow:hidden"> 
 
 <span style="float:left">当前会员号: <? echo $admin_keywordes ?></span>
 <span style="float:left; margin-left:65px;">未就餐人数:<? echo $order_sum-$order_sum_ed ?></span>
 <span style="float:left; margin-left:65px;">已就餐人数:<? echo $order_sum_ed ?></span>
 <span style="float:left; margin-left:65px;">总就餐人数:<? echo $order_sum ?></span>
 

 <span style="float:right; font-size:28px;">
 <a href="#" style=" background-color:#060; color:#ffffff;text-decoration: none;
    padding: 0px 8px;" onClick="resize('metro',{height:getheight()})">
 <? echo $searchStr ?>
 详情 >>
 </a>
 </span>
 
 </div>
 
 
        <table cellspacing="0" cellpadding="0" border="0" class="checkTable admin_list_table">
            <thead>
            <tr>
     
                <td>订餐人</td>
                <td>时段</td>
                <td>菜式</td>
                <td>份数</td>
                <td class="hide">单价</td>
                <!--<td>总价</td>-->
            </tr>
            </thead>
            <tbody>
            
			<?php 

 
            for($i=0;$i<$sum;$i++){?>
     <tr>
                   
                    
                    <td><? if ($search_user_name[$i]==$search_user_name[($i-1)]) { echo "" ;} else{ echo $search_user_name[$i]; }?> </td>
                    <td><?switch($search_at[$i]){
                            case 1:
                                echo "早餐";
                                break;
                            case 2:
                                echo "午餐";
                                break;
                            case 3:
                                echo "晚餐";
                                break;
                        }
                        ?></td>
                    <td class="productId productId_<?echo $search_id[$i]?>"  style="color:#9c0b0b" data-id="productId_<?echo $search_id[$i]?>">
					<? if($search_status[0]>1)
					   {echo "已领取<span style='color:#555555;font-size:40px;'>(".$search_name[$i].")</span>";} 
				
				       else{ echo $search_name[$i] ;}
					?>
					
					 
					</td>
                    <td><?echo $search_num[$i]?></td>
                    <td class="hide"><?echo $search_one_price[$i]?>/份</td>
                    <!--<td class="orderPriceTd"><?echo $search_price[$i]?></td>-->
                </tr>
            <? } ?>
            </tbody>
        </table>
		
		<div style="margin-top:15px;">
		<?
		if($sum==0)
		{ echo "当前会员号没有点餐信息";}
		?>
		</div>
    </div>
</div>
<br />
<br />
<br />
<br />


<?php include 'modules/footer.php'; ?>
</body>
</html>
